
package com.TTBook.utils;

public class BookBaseException extends BaseException{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7308594833320206146L;
	
	private String code;
	
	private Object args[];

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object[] getArgs() {
		return args;
	}

	public void setArgs(Object[] args) {
		this.args = args;
	}
	
	public BookBaseException(Throwable cause){
		super(cause);
	}
	public BookBaseException(final String code  , final String message){
		super(message);
		this.code = code ;
	}
	public BookBaseException(final String code ,final String message ,final Object[] args){
		super(message);
		this.code = code ; 
		this.args = args ;
	}
	
	public BookBaseException(final String code , final String message 
			, final Object[] args,final Throwable cause ){
		super(message , cause);
		this.code = code ;
		this.args = args ;
	}
}
